package com.hy.service.impl;

import com.hy.bean.RespBean;
import com.hy.dao.DepartmenttableDao;
import com.hy.dao.impl.DepartmenttableDaoImpl;
import com.hy.service.DepartmenttableService;
import org.springframework.stereotype.Service;

@Service
public class DepartmenttableServiceImpl implements DepartmenttableService {

    private final DepartmenttableDao departmenttableDao = new DepartmenttableDaoImpl();

    @Override
    public RespBean getAll(){
        return RespBean.success(null,departmenttableDao.AllDepartmenttable());
    }
}